﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HalalCheck.DataModels
{
    public class SalatData
    {
        private string _location;
        private string direction;
        private string map;

        public string location
        {
            get { return _location; }
            set
            {
                _location = value;
                SalatTitle = "Salah -" + _location;
            }
        }

        public string SalatTitle { get; set; }

        /*   public string title { get; set; }
        public string query { get; set; }
        //public string @for { get; set; }
        public int method { get; set; }
        public string prayer_method_name { get; set; }
        public string daylight { get; set; }
        public string timezone { get; set; }*/

        public string map_image
        {
            get { return map; }
            set { map = value.Replace("300x300", "500x500"); }
        }

        /*    public string sealevel { get; set; }
        public TodayWeather today_weather { get; set; }
        public string link { get; set; }

        public string qibla_direction
        {
            get
            {
                return direction;
            }
            set
            {
                direction = value;
                compassimage = "http://muslimsalat.com/qibla_compass/200/" + direction + ".png";
       
            }
        }

        public string compassimage { get; set; }

        public string latitude { get; set; }
        public string longitude { get; set; }
        public string address { get; set; }*/
        public string city { get; set; }
        public string state { get; set; }
        public string postal_code { get; set; }
        public string country { get; set; }
           public string country_code { get; set; }
        public List<Item> items { get; set; }
       /* public int status_valid { get; set; }
        public int status_code { get; set; }
        public string status_description { get; set; }
    }

    public class TodayWeather
    {
        private int _pressure;

        public int pressure
        {
            get
            {
                return _pressure;
            }
            set
            {
                if (value != null)
                {
                    _pressure = value;
                }
            }
        }

        public string temperature { get; set; }
    }*/

        public class Item
        {
            public string date_for { get; set; }
            public string fajr { get; set; }
            public string shurooq { get; set; }
            public string dhuhr { get; set; }
            public string asr { get; set; }
            public string maghrib { get; set; }
            public string isha { get; set; }
        }
    }
}